/**
 * @author feng
 * @Date 2021/7/26 8:20
 * 构造器
 * 子类初始化对象的属性的时候，会先调用父类的构造器，将父类的对象初始化行为和方法
 */
public class Test02 {
    public static void main(String[] args) {
        SalWomen salWomen = new SalWomen();
        salWomen.dosoem();

    }
}

class People {
    public People() {
        System.out.println("父类构造器");
    }
}

class SalWomen extends People {

    public SalWomen() {
        System.out.println("子类构造器");
    }

    public void dosoem() {
    }

    ;
}